#ifndef THREAD_H
#define THREAD_H

#include <pthread.h>
#include "jobqueue.h"

class Thread {
	public:
		Thread(JobQueue& jobQueue);
		~Thread();
	private:
		void abort();
		void start();
		void execute();
		JobQueue& jobQueue_;
		pthread_t thread_;
		friend void threadEntry(void *thread);
};

#endif
